<%-- 
    Document   : index
    Created on : Jul 5, 2011, 7:11:49 PM
    Author     : Admin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <form method="post" action="UserServlet">
            Name: <input type="text" name="txtName"><br/><br/>
            Password: <input type="password" name="txtPassword"/>

            <input type="submit"/>
        </form>

        <%
    if(request.getParameter("rs")!=null)
        if(Integer.parseInt(request.getParameter("rs")+"")==0)
            out.print("Login failed");
%>
    </body>
</html>
